﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace BartonExtension
{
    public class HttpDownloader
    {
        public static bool Get(string url,string filePath)
        {
            try
            {
                using (WebClient wc = new WebClient())
                {
                    wc.DownloadFile(url, filePath);
                }
                return true;
            }
            catch(Exception e)
            {
                return false;
            }
        }
    }
}
